<!doctype html>
<head>
        <meta name="keywords" content="羽毛球，球会，球场，教练">
		<meta name="charset" content="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/md5.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/jquery-form.js"></script>
</head>		
<div class="right_box">
		<div class="content content_hastab">	
			<form class='' id='' name="" action="__APP__/Home/Coach/updateCourse" method="post" enctype="multipart/form-data">
				<table  style="">
                <tbody>
                   <tr>
                   	   <td>
                   		   <label title='' for="course_name">课程名称</label>
                   	   </td>
                   	   <td>
                   		   <input type="text" name="course_name" id="course_name" maxlength="50"/><input type="hidden" name="course_id" id="course_id" ></input>
                   	   </td>
                   </tr>
                   <tr>
                   	   <td>
                   		   <label title='' for="course_contain_number">课程总人数</label>
                   	   </td>
                   	   <td>
                   		   <input type="number" id="course_contain_number" name="course_contain_number" value=""  />
                   	    </td>
                   </tr>

                   <tr>
                   	   <td>
                   		   <label title='' for="course_content">课程描述</label>
                   	   </td>
                   	   <td>
                   	   	<textarea id="course_content" name="course_content" rows="3" cols="20" maxlength="1000"></textarea>
                   	    </td>
                   </tr>
				  
                   <!-- <tr>
                   	   <td>
                   		   <label title='' for="course_gymnasium">上课地点</label>
                   	   </td>
                   	   <td>
                   		   <input type="text" name="course_gymnasium" id="course_gymnasium" placeholder="请填写体育馆编号" />
                   	   </td>
                   </tr> -->
                   <tr>
                        <td>
                              <label title='课程图片' for="course_picture">课程图片</label>
                        </td>
                        <td>                
                              <input type="file" name="course_picture" id="course_picture"/>
                        </td>
                   </tr>
                  </tbody> 
                </table>
                <input type="submit" />
            </form>
		</div>
	</div>	
</div>
<script type="text/javascript">
 $(function(){
		$.post('__URL__/courseDetail',{'course_id':parent.selected},function(resultList){ 			   
			   courseJson=resultList.result;
			  document.getElementById("course_id").value=courseJson.course_id;
			  document.getElementById("course_name").value=courseJson.course_name;
			  document.getElementById("course_contain_number").value=courseJson.course_schedule_st_number;
			  document.getElementById("course_content").value=courseJson.course_description;
			  document.getElementById("course_gymnasium").value=courseJson.course_gymnasium;
    	     },'json');  
			
		});
</script>